package com.wyh.day06.exercise;

/**
 * @author 王艺豪
 * @version 1.0
 */
public class Animal {
    String name;
    int age;
    String food;

    public Animal(String name, int age, String food) {
        this.name = name;
        this.age = age;
        this.food = food;
    }

    public void eat() {
        System.out.println(name + "正在吃...");
    }

    public void sleep() {
        System.out.println(name + "正在睡觉...");
    }
}
